home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8553 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.dal.ca!news
  2. From: keichele@ac.dal.ca (Klaus Eichele)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Hiding a password
  5. Date: Tue, 05 Mar 1996 05:22:11 GMT
  6. Organization: Dalhousie University
  7. Message-ID: <4hg505$asg@News.Dal.Ca>
  8. References: <1996Feb29.224936.137160@forest> <4he620$qf2@hpbblb.bbn.hp.com> <4hehmd$1fr@fnord.dfw.net> <4hei0c$1fr@fnord.dfw.net>
  9. NNTP-Posting-Host: rewasylishen.chem.dal.ca
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. ftlgeuse@dfw.dfw.net (Fetelgeuse) wrote:
  13.  
  14. >Fetelgeuse (ftlgeuse@dfw.dfw.net) wrote:
  15. >: I wrote a function to do precisely the same thing. I made a function
  16. >: something like:
  17. >: char * GetString_NoEcho()
  18. >: {
  19. >:   char *temp;
  20. >:   int i=1;
  21. >:   while(temp[i-1]!=13) {
  22. >:     temp[i-1]=getch();  
  23. >:     i++;
  24. >:   }
  25. >:   temp[i]=0;
  26. >: }
  27. >:
  28.  
  29. >OOPS! sorry - be sure and add a return to that:
  30.  
  31. >...
  32. >...
  33. >temp[i]=0;
  34. >return(temp);
  35. >}
  36. >Now all else said before still applies.
  37. >Fetelgeuse
  38. >     
  39.  
  40. Hopefully, this is only a hoax as there are several other
  41. errors/problems with this piece of code. Did you actually use this?
  42. The "Echo" of this function will be quite different from the intended
  43. purpose.
  44.  
  45. Cheers, Klaus
  46. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  47. Klaus Eichele         keichele@is.dal.ca  
  48. http://is.dal.ca/~keichele/keichele.html
  49.  
  50.